package com.travel.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RentalDetailsVo {

    /**
     * 所在城市id
     */
    @TableField(value = "city_id")
    private Integer cityId;

    /**
     * 租车公司id
     */
    @TableField(value = "car_company_id")
    private Integer carCompanyId;

    /**
     * 价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 牌照
     */
    @TableField(value = "photograph")
    private String photograph;

    /**
     * 取车以及还车方式
     */
    @TableField(value = "pick_return_car")
    private String pickReturnCar;

    /**
     * 取车地点
     */
    @TableField(value = "pick_up_location")
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String pickUpLocation;


    /**
     * 租车公司名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 营业时间
     */
    @TableField(value = "business_time")
    private String businessTime;

    /**
     * 汽车名
     */
    @TableField(value = "carName")
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String carName;

    /**
     * 汽车类型
     */
    @TableField(value = "car_type")
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String carType;

    /**
     * 座位数量
     */
    @TableField(value = "seats")
    private Integer seats;

    /**
     * 车门数量
     */
    @TableField(value = "doors")
    private Integer doors;

    /**
     * 手动挡还是自动挡
     */
    @TableField(value = "driving_style")
    private String drivingStyle;

    /**
     * 发动机排量
     */
    @TableField(value = "engine_capacity")
    private Double engineCapacity;

    /**
     * 汽车品牌
     */
    @TableField(value = "car_brand")
    private String carBrand;

    /**
     * 汽车图片
     */
    private List<String> images;

}
